diff --git a/manifests/service.pp b/manifests/service.pp index 2ffc8e6..6d78a00 100644 --- a/manifests/service.pp +++ b/manifests/service.pp @@ -21,8 +21,9 @@ class nginx::service { } service { "nginx": ensure => running, - enable => true, + enable => true, hasstatus => true, hasrestart => true, + subscribe => Exec['rebuild-nginx-vhosts'], } }