diff --git a/manifests/dbfile.pp b/manifests/dbfile.pp index fd97201..043a6c6 100644 --- a/manifests/dbfile.pp +++ b/manifests/dbfile.pp @@ -47,11 +47,11 @@ } else { - exec { "${postmap} ${title}": + exec { "${postmap} ${postfixdir}/${title}": cwd => $postfixdir, subscribe => File["${postfixdir}/${title}"], refreshonly => true, - # No need to notify the service, since it detects changed files + onlyif => "/usr/bin/test ${postfixdir}/${title} -nt ${postfixdir}/${title}.db" } }