]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/blobdiff - modules/role/manifests/cryptoportfolio/front.pp
wait for journal rather than polling
[perso/Immae/Projets/Puppet.git] / modules / role / manifests / cryptoportfolio / front.pp
index 3612fd5aaa5c9667cddc3afcdebd705bfa66c79e..aa57f4e16e3f581239b67cde93e20992b9742380 100644 (file)
@@ -151,6 +151,7 @@ class role::cryptoportfolio::front inherits role::cryptoportfolio {
     file { "/usr/local/bin/api_logger":
       mode    => "0755",
       content => template("role/cryptoportfolio/api_logger.py.erb"),
+      notify  => Service["cryptoportfolio-log"],
     }
     ->
     file { "/etc/systemd/system/cryptoportfolio-log.service":
@@ -158,7 +159,10 @@ class role::cryptoportfolio::front inherits role::cryptoportfolio {
       owner   => "root",
       group   => "root",
       content => template("role/cryptoportfolio/cryptoportfolio-log.service.erb"),
-      notify  => Exec["systemctl daemon-reload"],
+      notify  => [
+        Exec["systemctl daemon-reload"],
+        Service["cryptoportfolio-log"]
+      ]
     }
     ->
     service { 'cryptoportfolio-log':