From 23e21c6a6c6acadad91d5b7e8c711397137c6b8c Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Sun, 15 Jan 2012 15:09:02 +0000 Subject: more resilient setup ( and this also avoid the various synchronization problem ) --- modules/ii/manifests/init.pp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules') 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'], } } } -- cgit v1.2.1