summarylogtreecommitdiffstats
path: root/cockroach.service
diff options
context:
space:
mode:
authorJ. Konrad Tegtmeier-Rottach2018-04-15 05:25:01 +0200
committerJ. Konrad Tegtmeier-Rottach2018-04-15 05:41:29 +0200
commitb5e462f93de301d00b1be14285ce40aa2334eac8 (patch)
tree568dba20aadb05163a1c4f70f3f28e30b057f817 /cockroach.service
parent57c93e2f691cf67ea5ce2c92e6cc24e70a6e7292 (diff)
downloadaur-b5e462f93de301d00b1be14285ce40aa2334eac8.tar.gz
update package for v2.0.0
New: - generated man pages - generated bash completion - systemd service Fixed: - applicable licenses - libtinfo.so.5 dependency
Diffstat (limited to 'cockroach.service')
-rw-r--r--cockroach.service19
1 files changed, 19 insertions, 0 deletions
diff --git a/cockroach.service b/cockroach.service
new file mode 100644
index 00000000000..e4bde93d403
--- /dev/null
+++ b/cockroach.service
@@ -0,0 +1,19 @@
+[Unit]
+Description=CockroachDB database server
+Requires=network-online.target
+After=network-online.target
+
+[Service]
+User=cockroach
+Group=cockroach
+
+EnvironmentFile=-/etc/default/cockroach
+ExecStart=/usr/bin/cockroach start --certs-dir /etc/cockroach --store=${COCKROACH_STORE} $COCKROACH_FLAGS
+LimitNOFILE=35000
+
+ProtectHome=true
+ProtectSystem=full
+NoNewPrivileges=true
+
+[Install]
+WantedBy=multi-user.target