ansible-role-cockroachdb/templates/systemd.service

22 lines
496 B
SYSTEMD

[Unit]
Description=CockroachDB database server
Requires=network-online.target
After=network-online.target
[Service]
User={{ cockroachdb__uid }}
Group={{ cockroachdb__gid }}
EnvironmentFile=-/etc/default/cockroach
ExecStart=/usr/local/bin/cockroach start --certs-dir /etc/cockroach --store=${COCKROACH_STORE} $COCKROACH_FLAGS
LimitNOFILE=35000
PrivateTmp=true
ProtectSystem=strict
PrivateDevices=true
ProtectHome=true
ReadWritePaths={{ cockroachdb__dir }}
[Install]
WantedBy=multi-user.target