cockroachdb-bin/cockroach.service

20 lines
409 B
SYSTEMD
Raw Normal View History

[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