github.com/muhammedhassanm/blockchain@v0.0.0-20200120143007-697261defd4d/sawtooth-core-master/validator/packaging/path.toml.example (about)

     1  #
     2  # Copyright 2017 Intel Corporation
     3  #
     4  # Licensed under the Apache License, Version 2.0 (the "License");
     5  # you may not use this file except in compliance with the License.
     6  # You may obtain a copy of the License at
     7  #
     8  #     http://www.apache.org/licenses/LICENSE-2.0
     9  #
    10  # Unless required by applicable law or agreed to in writing, software
    11  # distributed under the License is distributed on an "AS IS" BASIS,
    12  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13  # See the License for the specific language governing permissions and
    14  # limitations under the License.
    15  # ------------------------------------------------------------------------------
    16  
    17  #
    18  # Sawtooth -- Path Configuration
    19  #
    20  
    21  
    22  # Important!
    23  #
    24  # Configuration using this file is usually unnecessary.  For non-standard
    25  # directory paths, use of the SAWTOOTH_HOME environment variable is preferred
    26  # over use of this configuration file.
    27  #
    28  # This file should be used when installing on an operating system distribution
    29  # and the default paths are not appropriate.  For example, some Unix-based
    30  # operating systems do not use /var/lib, and therefore configuring data_dir
    31  # to the natural operating system default path for application data would be
    32  # appropriate.
    33  
    34  
    35  # This file allows for setting the following:
    36  #   key_dir   -  the directory path to use when loading key files
    37  #   data_dir  -  the directory path to store data files such as the block store
    38  #   log_dir   -  the directory path to write log files
    39  #   policy_dir - the directory path to store policies
    40  #
    41  # In addition, the default path examples below include the following path which
    42  # may not be modified using this file:
    43  #   conf_dir  -  the directory path containing configuration files
    44  
    45  
    46  # When the SAWTOOTH_HOME environment variable is set, the default paths are as
    47  # follows:
    48  #
    49  #   conf_dir = SAWTOOTH_HOME/etc/
    50  #   key_dir  = SAWTOOTH_HOME/keys/
    51  #   data_dir = SAWTOOTH_HOME/data/
    52  #   log_dir  = SAWTOOTH_HOME/logs/
    53  #   policy_dir  = SAWTOOTH_HOME/policy/
    54  #
    55  # So, for example if SAWTOOTH_HOME is set to a value of /tmp/testing, then the
    56  # default for data_dir will be /tmp/testing/data/.
    57  #
    58  # When the SAWTOOTH_HOME environment variable is not set, then the operating
    59  # system defaults are used.
    60  
    61  
    62  # On Windows, the path is relative to the CLI command being run.  The directory
    63  # one level up from the command is the 'base_dir'; the command generally being
    64  # installed within base_dir/bin/.  The rest of the directories are relative to
    65  # base_dir:
    66  #   conf_dir = base_dir\conf\
    67  #   key_dir  = base_dir\conf\keys\
    68  #   data_dir = base_dir\data\
    69  #   log_dir  = base_dir\logs\
    70  #   policy_dir  = base_dir\policy\
    71  
    72  #
    73  # For example, if Sawtooth is installed in C:\sawtooth\, the validator
    74  # executable would be C:\sawtooth\bin\validator.exe and the data directory
    75  # would be C:\sawtooth\data\.
    76  
    77  
    78  # On Linux, the default path settings are:
    79  #
    80  #   conf_dir = "/etc/sawtooth"
    81  #   key_dir  = "/etc/sawtooth/keys"
    82  #   data_dir = "/var/lib/sawtooth"
    83  #   log_dir  = "/var/log/sawtooth"
    84  #   policy_dir  = "/etc/sawtooth/policy"