Skip to content

Commit

Permalink
(doc) Adds examples of running the service created
Browse files Browse the repository at this point in the history
* Closes #24
  • Loading branch information
petems authored and Peter Souter committed Oct 17, 2017
1 parent c9d2e51 commit 318bcc8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ Let this module handle file creation and systemd reloading.
::systemd::unit_file { 'foo.service':
source => "puppet:///modules/${module_name}/foo.service",
}
~> service {'foo':
ensure => 'running',
}
```

Or handle file creation yourself and trigger systemd.
Expand All @@ -33,6 +36,11 @@ file { '/usr/lib/systemd/system/foo.service':
source => "puppet:///modules/${module_name}/foo.service",
} ~>
Exec['systemctl-daemon-reload']
service {'foo':
ensure => 'running',
subscribe => File['/usr/lib/systemd/system/foo.service'],
}
```

### tmpfiles
Expand Down

0 comments on commit 318bcc8

Please sign in to comment.