]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/chef/templates/default/chef-client.service.erb
Use a systemd unit for chef-client on Ubuntu 15.10
[chef.git] / cookbooks / chef / templates / default / chef-client.service.erb
diff --git a/cookbooks/chef/templates/default/chef-client.service.erb b/cookbooks/chef/templates/default/chef-client.service.erb
new file mode 100644 (file)
index 0000000..0b16414
--- /dev/null
@@ -0,0 +1,10 @@
+[Unit]
+Description=Chef Client
+After=network.target
+
+[Service]
+ExecStart=/usr/bin/chef-client -i 1800 -s 20
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target