Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Update how to run multiple fd instances on windows #859

Merged
merged 1 commit into from
Jun 29, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 5 additions & 11 deletions docs/manuals/source/TasksAndConcepts/TheWindowsVersionOfBareos.rst
Original file line number Diff line number Diff line change
Expand Up @@ -604,30 +604,24 @@ After restarting the service, you will find a file called :file:`C:\bareos-fd.tr
Installing multiple Windows filedaemon services
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

It is possible to run multiple |fd| instances on Windows. To achieve this, you need to create a service for each instance, and a configuration file that at least has a individual fd port for each instance.
It is possible to run multiple |fd| instances on Windows. To achieve this, you need to create a service for each instance, and a configuration directory that at least has a individual fd port for each instance.

To create two bareos-fd services, you can call the following service create calls on the commandline on windows as administrator:

.. code-block:: shell-session

sc create bareosfd2 binpath="\"C:\Program Files\Bareos\bareos-fd.exe\" /service -c \"C:\ProgramData\Bareos\bareos-fd2.conf\"" depend= "tcpip/afd"
sc create bareosfd3 binpath="\"C:\Program Files\Bareos\bareos-fd.exe\" /service -c \"C:\ProgramData\Bareos\bareos-fd3.conf\"" depend= "tcpip/afd"
sc create bareosfd2 binpath="\"C:\Program Files\Bareos\bareos-fd.exe\" /service -c \"C:\ProgramData\Bareos2\"" depend= "tcpip/afd"

This will create two |fd| services, one with the name bareosfd2 and the second with the name bareosfd3.
This will create a second |fd| service with the name bareosfd2.

The configuration files for the two services are :file:`bareos-fd.conf` and :file:`bareos-fd2.conf`, and need to have different network settings.
The configuration directories for the two services is :file:`\"C:\\ProgramData\\Bareos2\\\"` needs to have different network settings.

The services can be started by calling
The service can be started by calling

.. code-block:: shell-session

sc start bareosfd2

and

.. code-block:: shell-session

sc start bareosfd3

Windows Specific Command Line Options
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down