title: puppet how to manage service with only if
body: <p>Can some one help me with puppet, I want to launch my service using smt like:</p>
  
  <pre><code>service {"my_service":
      ensure     =&gt; running,
      enable     =&gt; true,
      hasstatus  =&gt; true,
      hasrestart =&gt; true,
  }
  </code></pre>
  
  <p>but It require some some folder that can appear at any time and I can't control it. So I want some thing like <code>onlyif =&gt;</code> for <code>service</code> </p>
  
  <p>seems that if my service require some <code>exec</code> with <code>onlyif</code> it's does not work...</p>