summaryrefslogtreecommitdiff
path: root/docs/utils/index.rst
blob: 33891471506c597f00533552a3f6b73c0c38d451 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
.. _searx_utils:
.. _toolboxing:

=======================
Tooling box ``utils/*``
=======================

In the folder :origin:`utils/` we maintain some tools useful for admins and
developers.

.. sidebar:: Work needed!

   Our scripts to maintain services do most support only systemd init process
   used by debian, ubuntu and many other dists.  In general our scripts are only
   partially usable on debian systems.  We are working on this limitation, if
   you have any contribution, please send us your :pull:`PR <../pulls>`, see
   :ref:`how to contribute`.

.. toctree::
   :maxdepth: 2
   :caption: Contents

   searx.sh
   filtron.sh
   morty.sh

.. _toolboxing common:

Common commands
===============

Scripts to maintain services often dispose of common commands and environments.

``shell``:
  Opens a shell from the service user ``${SERVICE_USSR}``, very helpful for
  troubleshooting.

``inspect service``:
  Shows status and log of the service, most often you have a option to enable
  more verbose debug logs.  Very helpful for debugging, but be careful not to
  enable debugging in a production environment!

.. _toolboxing setup:

Tooling box setup
=================

The main setup is done in the :origin:`.config.sh` (read also :ref:`makefile
setup`).

.. literalinclude:: ../../.config.sh
   :language: bash