Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
James Coyle
cockroach-deploy
Commits
1f978566
Commit
1f978566
authored
Jun 06, 2018
by
James Coyle
Browse files
Added host switch
parent
1ef13107
Changes
1
Hide whitespace changes
Inline
Side-by-side
cockroach.service
View file @
1f978566
...
...
@@ -6,6 +6,8 @@ WantedBy=multi-user.target
[Service]
ExecStartPre
=
/bin/bash -c "test -f /etc/cockroachdb/hosts && (/bin/systemctl set-environment JOIN_SWITCH=--join=$(test -f /etc/cockroachdb/hosts && cat /dev/null /etc/cockroachdb/hosts)) || exit 0"
ExecStartPre
=
/bin/bash -c "test -f /etc/cockroachdb/host && (/bin/systemctl set-environment HOST_SWITCH=--host=$(test -f /etc/cockroachdb/host && cat /dev/null /etc/cockroachdb/host)) || exit 0"
ExecStart
=
/usr/local/bin/cockroach start --certs-dir=/etc/cockroachdb/certs
\
--store=/var/data/cockroachdb/
\
--cache=.40
\
...
...
@@ -16,7 +18,7 @@ ExecStart=/usr/local/bin/cockroach start --certs-dir=/etc/cockroachdb/certs \
--http-port=7005
\
--logtostderr=ERROR
\
--log-dir=/var/logs/cockroachdb
\
$JOIN_SWITCH
$JOIN_SWITCH
$HOST_SWITCH
ExecStop=/usr/local/bin/cockroach quit --certs-dir=/etc/cockroachdb/certs
SyslogIdentifier=cockroachdb
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment