Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cockroach-deploy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
James Coyle
cockroach-deploy
Commits
1f978566
Commit
1f978566
authored
Jun 06, 2018
by
James Coyle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added host switch
parent
1ef13107
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
cockroach.service
cockroach.service
+3
-1
No files found.
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