summaryrefslogtreecommitdiffstats
path: root/modules/systemd/manifests/service.pp
blob: ac4076ac7770781d09d828caf906cbdcddfbe126 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
define systemd::service($source = undef, $content = undef) {
  include systemd

  file { "/etc/systemd/system/${name}.service":
    source => $source,
    content => $content,
    notify => [
      Exec["/usr/bin/systemctl daemon-reload"],
      Service["${name}"],
    ];
  }
}