Advertisement
Tristan-Nel

Untitled

Apr 30th, 2020
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.69 KB | None | 0 0
  1. # Defaults for kurento-media-server initscript (/etc/init.d/kurento-media-server)
  2. # This is a POSIX shell fragment
  3.  
  4.  
  5.  
  6. # IMPORTANT NOTE
  7. # ==============
  8.  
  9. # This file only gets loaded if Kurento Media Server is started through the
  10. # system service init mechanism: Running
  11. # `sudo service kurento-media-server start` will execute the script found at
  12. # "/etc/init.d/kurento-media-server", which in turn sources this file.
  13. #
  14. # If you run KMS by hand, e.g. by directly executing
  15. # `/usr/bin/kurento-media-server` in a shell, then all settings in this file
  16. # won't be loaded in the environment. You can load them by running
  17. # `source /etc/default/kurento-media-server` *before* running KMS.
  18.  
  19.  
  20.  
  21. # Service script settings
  22. # =======================
  23.  
  24. START_DAEMON="true" # If not "true", the daemon will refuse to load
  25. DAEMON_ARGS="" # Passed directly to the kurento-media-server executable
  26. DAEMON_USER="kurento" # User as whom Kurento Media Server will run
  27. DAEMON_LOG_DIR="/var/log/kurento-media-server" # Where to store daemon logs
  28.  
  29.  
  30.  
  31. # Kurento Media Server settings
  32. # =============================
  33.  
  34. ## Most settings can be passed either as environment variables or as
  35. ## command-line arguments.
  36. ## E.g.: KURENTO_LOGS_PATH="/tmp" is equivalent to --logs-path="/tmp"
  37.  
  38. ## Default logging levels for recommended components.
  39. ## Command line equivalent: --gst-debug-level=3 --gst-debug="[...]"
  40. ## See https://doc-kurento.readthedocs.io/en/latest/features/logging.html
  41. export GST_DEBUG="3,Kurento*:4,kms*:4,sdp*:4,webrtc*:4,*rtpendpoint:4,rtp*handler:4,rtpsynchronizer:4,agnosticbin:4"
  42.  
  43. ## Extended logging: Event MediaFlow{In,Out} state changes
  44. # export GST_DEBUG="${GST_DEBUG:-3},KurentoMediaElementImpl:5"
  45.  
  46. ## Extended logging: ICE candidate gathering
  47. # export GST_DEBUG="${GST_DEBUG:-3},kmsiceniceagent:5,kmswebrtcsession:5,webrtcendpoint:4"
  48.  
  49. ## 3rd-Party logging: libnice
  50. # export G_MESSAGES_DEBUG="libnice,libnice-stun"
  51. # export GST_DEBUG="${GST_DEBUG:-3},glib:5"
  52.  
  53. ## Extended logging: RPC calls
  54. # export GST_DEBUG="${GST_DEBUG:-3},KurentoWebSocketTransport:5"
  55.  
  56. ## Extended logging: Transcoding of media
  57. # export GST_DEBUG="${GST_DEBUG:-3},Kurento*:5,agnosticbin*:5"
  58.  
  59. ## Logging settings: Disable colored output.
  60. ## When running KMS with these service init scripts, this setting mainly
  61. ## affects the output of errors in '/var/log/kurento-media-server/errors.log'.
  62. ## Also useful to set when running directly from a Docker container.
  63. export GST_DEBUG_NO_COLOR=1
  64.  
  65. ## Logging settings: Output path for GStreamer debug graphs.
  66. ## Uncomment to enable generation of debug graphs.
  67. # export GST_DEBUG_DUMP_DOT_DIR="/tmp"
  68.  
  69. ## Path where rotating log files will be stored.
  70. ## If this option is unset, logging will be disabled.
  71. ## Command line equivalent: --logs-path
  72. ## Default: Unset
  73. export KURENTO_LOGS_PATH="$DAEMON_LOG_DIR"
  74.  
  75. ## Maximum file size for log files, in MB.
  76. ## Command line equivalent: --log-file-size
  77. ## Default: 100
  78. # export KURENTO_LOG_FILE_SIZE=100
  79.  
  80. ## Maximum number of log files to keep.
  81. ## Command line equivalent: --number-log-files
  82. ## Default: 10
  83. # export KURENTO_NUMBER_LOG_FILES=10
  84.  
  85. ## Path to the main configuration file for Kurento.
  86. ## Command line equivalent: --conf-file
  87. ## Default: "/etc/kurento/kurento.conf.json"
  88. # export KURENTO_CONF_FILE="/etc/kurento/kurento.conf.json"
  89.  
  90. ## Path to the directory where Kurento modules can be found.
  91. ## Command line equivalent: --modules-path
  92. ## Default: "/usr/lib"
  93. # export KURENTO_MODULES_PATH="/usr/lib"
  94.  
  95. ## Path to the directory where config files can be found for Kurento modules.
  96. ## Command line equivalent: --modules-config-path
  97. ## Default: "/etc/kurento/modules"
  98. # export KURENTO_MODULES_CONFIG_PATH="/etc/kurento/modules"
  99.  
  100.  
  101.  
  102. # Linux Kernel & System settings
  103. # ==============================
  104.  
  105. unset GST_PLUGIN_PATH
  106.  
  107. ## Destination of Kernel core dump files
  108. ## See https://www.kernel.org/doc/Documentation/sysctl/kernel.txt
  109. ##
  110. ## In Ubuntu, if Apport is installed it creates a compact Crash Report
  111. ## including the Core Dump and some other system information.
  112. ## The default pattern in Ubuntu desktop systems is:
  113. ## '|/usr/share/apport/apport %p %s %c %d %P'.
  114. ##
  115. ## Uncomment to set a custom pattern for core dump files.
  116. # DAEMON_CORE_PATTERN="/tmp/core_%e_%p_%u_%t"
  117.  
  118. ## Set per-process max open file descriptors to half of system-wide max
  119. ## (Only touch this if you are a sysadmin and/or you know what you are doing!)
  120. DAEMON_MAX_FILES="$(( ($(cat /proc/sys/fs/file-max) * 50) / 100 ))"
  121.  
  122. ## Set per-user max threads to system's "Hard Limit"
  123. ## (Only touch this if you are a sysadmin and/or you know what you are doing!)
  124. ##
  125. ## Note: This is '-u' in Bash and '-p' in Sh
  126. # DAEMON_MAX_THREADS="$(ulimit -Hp)"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement