Skip to content

Commit

Permalink
Update RPM environment config file location
Browse files Browse the repository at this point in the history
Relates to crate/crate#15502.
  • Loading branch information
seut authored and amotl committed Feb 14, 2024
1 parent 830a7d9 commit 2d41e2d
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 2 deletions.
14 changes: 12 additions & 2 deletions docs/install/configure.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,13 @@ Environment Variables
=====================

For the vanilla package-based setup flavor, the CrateDB startup script reads
:ref:`crate-reference:conf-env` from the ``/etc/default/crate`` file on Debian systems.
On RPM systems, the ``/etc/sysconfig/crate`` file is used.
:ref:`crate-reference:conf-env` from the ``/etc/default/crate`` file as
environment variables.

.. Note::

RPM packages of CrateDB versions up to `5.2.11`_, `5.3.8`_, `5.4.7`_
and `5.5.2`_ are using the ``/etc/sysconfig/crate`` file instead.

When using the :ref:`install-adhoc` setup, or the :ref:`Microsoft Windows <windows-install>`
setup, the environment variables will be defined by ``bin/crate{.sh,.bat}`` relative to the
Expand All @@ -50,4 +55,9 @@ Here is an example::
CRATE_USE_IPV4=true



.. _5.2.11: https://cratedb.com/docs/crate/reference/en/latest/appendices/release-notes/5.2.11.html
.. _5.3.8: https://cratedb.com/docs/crate/reference/en/latest/appendices/release-notes/5.3.8.html
.. _5.4.7: https://cratedb.com/docs/crate/reference/en/latest/appendices/release-notes/5.4.7.html
.. _5.5.2: https://cratedb.com/docs/crate/reference/en/latest/appendices/release-notes/5.5.2.html
.. _sources: https://en.wikipedia.org/wiki/Source_(command)
7 changes: 7 additions & 0 deletions docs/install/debian-ubuntu.rst
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,13 @@ Once the service is up and running, you can access CrateDB by visiting::
http://localhost:4200/


Configure CrateDB
=================

Please visit the :ref:`install-configure` documentation section to learn
about the location and meaning of CrateDB's configuration files.


.. include:: _control-linux.rst
.. include:: _post-install.rst

Expand Down
8 changes: 8 additions & 0 deletions docs/install/redhat.rst
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,14 @@ With everything set up, you can install CrateDB::
sudo yum install crate


Configure CrateDB
=================

Please visit the :ref:`install-configure` documentation section to learn
about the location and meaning of CrateDB's configuration files.



.. include:: _control-linux.rst
.. include:: _post-install.rst

Expand Down

0 comments on commit 2d41e2d

Please sign in to comment.