summaryrefslogtreecommitdiff
path: root/distro/debian/etc/init/chef-server.conf
diff options
context:
space:
mode:
Diffstat (limited to 'distro/debian/etc/init/chef-server.conf')
-rw-r--r--distro/debian/etc/init/chef-server.conf17
1 files changed, 17 insertions, 0 deletions
diff --git a/distro/debian/etc/init/chef-server.conf b/distro/debian/etc/init/chef-server.conf
new file mode 100644
index 0000000000..1eebd8f0cb
--- /dev/null
+++ b/distro/debian/etc/init/chef-server.conf
@@ -0,0 +1,17 @@
+# chef-server - Chef Server
+#
+# Chef Server provides the Chef API server
+
+description "Chef Server API"
+
+start on filesystem
+stop on runlevel [!2345]
+
+respawn
+respawn limit 5 30
+
+pre-start script
+ test -x /usr/bin/chef-server || { stop; exit 0; }
+end script
+
+exec /usr/bin/chef-server -e production -p 4000 -L /var/log/chef/server.log