]> git.openstreetmap.org Git - chef.git/blob - cookbooks/systemd/templates/default/service.erb
Imagery: switch back to using multiwatch
[chef.git] / cookbooks / systemd / templates / default / service.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 [Service]
13 Type=<%= @type %>
14 <% if @limit_nofile -%>
15 LimitNOFILE=<%= @limit_nofile %>
16 <% end -%>
17 <% if @memory_low -%>
18 MemoryLow=<%= @memory_low %>
19 <% end -%>
20 <% if @memory_high -%>
21 MemoryHigh=<%= @memory_high %>
22 <% end -%>
23 <% if @memory_max -%>
24 MemoryMax=<%= @memory_max %>
25 <% end -%>
26 <% @environment.each do |name,value| -%>
27 Environment="<%= name %>=<%= value %>"
28 <% end -%>
29 <% if @environment_file -%>
30 EnvironmentFile=<%= @environment_file %>
31 <% end -%>
32 <% if @user -%>
33 User=<%= @user %>
34 <% end -%>
35 <% if @group -%>
36 Group=<%= @group %>
37 <% end -%>
38 <% if @working_directory -%>
39 WorkingDirectory=<%= @working_directory %>
40 <% end -%>
41 <% if @exec_start_pre -%>
42 ExecStartPre=<%= @exec_start_pre %>
43 <% end -%>
44 ExecStart=<%= @exec_start %>
45 <% if @exec_start_post -%>
46 ExecStartPost=<%= @exec_start_post %>
47 <% end -%>
48 <% if @exec_stop -%>
49 ExecStop=<%= @exec_stop %>
50 <% end -%>
51 <% if @exec_reload -%>
52 ExecReload=<%= @exec_reload %>
53 <% end -%>
54 <% if @runtime_directory -%>
55 RuntimeDirectory=<%= @runtime_directory %>
56 <% end -%>
57 <% if @runtime_directory_mode -%>
58 RuntimeDirectoryMode=<%= sprintf("0%o", @runtime_directory_mode) %>
59 <% end -%>
60 <% if @standard_input -%>
61 StandardInput=<%= @standard_input %>
62 <% end -%>
63 <% if @standard_output -%>
64 StandardOutput=<%= @standard_output %>
65 <% end -%>
66 <% if @standard_error -%>
67 StandardError=<%= @standard_error %>
68 <% end -%>
69 <% if @private_tmp -%>
70 PrivateTmp=<%= @private_tmp %>
71 <% end -%>
72 <% if @private_devices -%>
73 PrivateDevices=<%= @private_devices %>
74 <% end -%>
75 <% if @private_network -%>
76 PrivateNetwork=<%= @private_network %>
77 <% end -%>
78 <% if @protect_system -%>
79 ProtectSystem=<%= @protect_system %>
80 <% end -%>
81 <% if @protect_home -%>
82 ProtectHome=<%= @protect_home %>
83 <% end -%>
84 <% if @no_new_privileges -%>
85 NoNewPrivileges=<%= @no_new_privileges %>
86 <% end -%>
87 <% if @success_exit_status -%>
88 SuccessExitStatus=<%= Array(@success_exit_status).join(" ") %>
89 <% end -%>
90 <% if @restart -%>
91 Restart=<%= @restart %>
92 <% end -%>
93 <% if @timeout_sec -%>
94 TimeoutSec=<%= @timeout_sec %>
95 <% end -%>
96 <% if @pid_file -%>
97 PIDFile=<%= @pid_file %>
98 <% end -%>
99
100 [Install]
101 WantedBy=multi-user.target