]> git.openstreetmap.org Git - chef.git/blob - cookbooks/systemd/templates/default/path.erb
8d0852b196d121a5f9f99b76e7f048538f676d2f
[chef.git] / cookbooks / systemd / templates / default / path.erb
1 # DO NOT EDIT - This file is being maintained by Chef
2
3 [Unit]
4 Description=<%= @description %>
5 <% if @after -%>
6 After=<%= Array(@after).join(" ") %>
7 <% end -%>
8 <% if @wants -%>
9 Wants=<%= Array(@wants).join(" ") %>
10 <% end -%>
11
12 [Path]
13 <% Array(@path_exists).each do |path| -%>
14 PathExists=<%= path %>
15 <% end -%>
16 <% Array(@path_exists_glob).each do |path| -%>
17 PathExistsGlob=<%= path %>
18 <% end -%>
19 <% Array(@path_changed).each do |path| -%>
20 PathChanged=<%= path %>
21 <% end -%>
22 <% Array(@path_modified).each do |path| -%>
23 PathModified=<%= path %>
24 <% end -%>
25 <% Array(@directory_not_empty).each do |path| -%>
26 DirectoryNotEmpty=<%= path %>
27 <% end -%>
28 Unit=<%= @unit %>
29 <% if @make_directory -%>
30 MakeDirectory=<%= @make_directory %>
31 <% end -%>
32 <% if @directory_mode -%>
33 DirectoryMode=<%= sprintf("0%o", @directory_mode) %>
34 <% end -%>
35
36 [Install]
37 WantedBy=multi-user.target