summaryrefslogtreecommitdiffstats
path: root/modules/systemd/manifests
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-03-21 14:25:48 -0400
committerJesse Luehrs <doy@tozt.net>2021-03-21 14:25:48 -0400
commit2fdee0d1196dc57cb4ca109182c903a2fc70deb1 (patch)
tree7622eda54857c8ba1f9f76ce4d56b95b40ee7fb2 /modules/systemd/manifests
parentf187d6e7a03738147632d00d1ac637df5ac52913 (diff)
downloadpuppet-tozt-2fdee0d1196dc57cb4ca109182c903a2fc70deb1.tar.gz
puppet-tozt-2fdee0d1196dc57cb4ca109182c903a2fc70deb1.zip
restart the service when the service file changes
Diffstat (limited to 'modules/systemd/manifests')
-rw-r--r--modules/systemd/manifests/init.pp2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/systemd/manifests/init.pp b/modules/systemd/manifests/init.pp
index f6b992a..be7d6a7 100644
--- a/modules/systemd/manifests/init.pp
+++ b/modules/systemd/manifests/init.pp
@@ -2,4 +2,6 @@ class systemd {
exec { "/usr/bin/systemctl daemon-reload":
refreshonly => true;
}
+
+ Exec["/usr/bin/systemctl daemon-reload"] -> Service<| |>
}