aboutsummaryrefslogtreecommitdiffstats
path: root/modules/ii
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2012-01-15 15:09:02 +0000
committerMichael Scherer <misc@mageia.org>2012-01-15 15:09:02 +0000
commit23e21c6a6c6acadad91d5b7e8c711397137c6b8c (patch)
treeac1d143f45afa273e393c75eff5c6c297fe644ac /modules/ii
parent30b9a2253bf553988f2f935d84db0c04cd44377e (diff)
downloadpuppet-23e21c6a6c6acadad91d5b7e8c711397137c6b8c.tar
puppet-23e21c6a6c6acadad91d5b7e8c711397137c6b8c.tar.gz
puppet-23e21c6a6c6acadad91d5b7e8c711397137c6b8c.tar.bz2
puppet-23e21c6a6c6acadad91d5b7e8c711397137c6b8c.tar.xz
puppet-23e21c6a6c6acadad91d5b7e8c711397137c6b8c.zip
more resilient setup ( and this also avoid the various synchronization problem )
Diffstat (limited to 'modules/ii')
-rw-r--r--modules/ii/manifests/init.pp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/ii/manifests/init.pp b/modules/ii/manifests/init.pp
index 23793821..70083a64 100644
--- a/modules/ii/manifests/init.pp
+++ b/modules/ii/manifests/init.pp
@@ -24,14 +24,14 @@ class ii {
service { 'ii':
provider => base,
start => "/usr/local/bin/ii_$nick",
- notify => Exec["join channel $nick"],
require => Local_script["ii_$nick"],
}
exec { "join channel $nick":
command => "echo '/j $channel' > /var/lib/ii/$nick/$server/in",
user => nobody,
- refreshonly => true,
+ unless => "test -d /var/lib/ii/$nick/$server/$channel",
+ require => Service['ii'],
}
}
}