ansible-role-cockroachdb/templates/systemd.service

22 lines
496 B
SYSTEMD
Raw Permalink Normal View History

2020-11-13 14:30:17 +01:00
[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