3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# File 'manifests/gui/service.pp', line 3
class gpfs::gui::service {
assert_private()
if $gpfs::gui::manage_services {
service { 'pmcollector':
ensure => 'running',
enable => true,
hasstatus => true,
hasrestart => true,
before => Service['gpfsgui'],
}
service { 'gpfsgui':
ensure => 'running',
enable => true,
hasstatus => true,
hasrestart => true,
}
if $gpfs::gui::manage_initgui {
exec { '/usr/lpp/mmfs/gui/cli/initgui':
path => '/usr/bin:/bin:/usr/sbin:/sbin',
command => '/usr/lpp/mmfs/gui/cli/initgui && touch /var/lib/mmfs/initgui.done',
refreshonly => true,
creates => '/var/lib/mmfs/initgui.done',
onlyif => [
'test -f /var/mmfs/gen/mmsdrfs',
],
require => Service['gpfsgui'],
}
}
}
}
|