summarylogtreecommitdiffstats
path: root/couchbase-server.service
diff options
context:
space:
mode:
Diffstat (limited to 'couchbase-server.service')
-rw-r--r--couchbase-server.service20
1 files changed, 20 insertions, 0 deletions
diff --git a/couchbase-server.service b/couchbase-server.service
new file mode 100644
index 000000000000..c3f57c629816
--- /dev/null
+++ b/couchbase-server.service
@@ -0,0 +1,20 @@
+# -*- mode: conf-unix; -*-
+[Unit]
+Description = Couchbase Server
+Documentation = http://docs.couchbase.com
+After = network.target remote-fs.target nss-lookup.target
+
+[Service]
+SyslogIdentifier = couchbase
+User = couchbase
+Type = forking
+PIDFile=/opt/couchbase/var/lib/couchbase/couchbase-server.pid
+WorkingDirectory = /opt/couchbase/var/lib/couchbase
+LimitNOFILE = 40960
+LimitCORE = unlimited
+LimitMEMLOCK = unlimited
+ExecStart = /opt/couchbase/bin/couchbase-server -noinput -detached > /opt/couchbase/var/lib/couchbase/logs/start.log 2>&1
+ExecStop = /opt/couchbase/bin/couchbase-server -k
+
+[Install]
+WantedBy = multi-user.target