Advertisement
Guest User

/etc/rc.conf

a guest
May 16th, 2016
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 9.45 KB | None | 0 0
  1. # Global OpenRC configuration settings
  2.  
  3. # Set to "YES" if you want the rc system to try and start services
  4. # in parallel for a slight speed improvement. When running in parallel we
  5. # prefix the service output with its name as the output will get
  6. # jumbled up.
  7. # WARNING: whilst we have improved parallel, it can still potentially lock
  8. # the boot process. Don't file bugs about this unless you can supply
  9. # patches that fix it without breaking other things!
  10. #rc_parallel="NO"
  11.  
  12. # Set rc_interactive to "YES" and you'll be able to press the I key during
  13. # boot so you can choose to start specific services. Set to "NO" to disable
  14. # this feature. This feature is automatically disabled if rc_parallel is
  15. # set to YES.
  16. rc_interactive="YES"
  17.  
  18. # If we need to drop to a shell, you can specify it here.
  19. # If not specified we use $SHELL, otherwise the one specified in /etc/passwd,
  20. # otherwise /bin/sh
  21. # Linux users could specify /sbin/sulogin
  22. rc_shell=/sbin/sulogin
  23.  
  24. # Do we allow any started service in the runlevel to satisfy the dependency
  25. # or do we want all of them regardless of state? For example, if net.eth0
  26. # and net.eth1 are in the default runlevel then with rc_depend_strict="NO"
  27. # both will be started, but services that depend on 'net' will work if either
  28. # one comes up. With rc_depend_strict="YES" we would require them both to
  29. # come up.
  30. rc_depend_strict="NO"
  31.  
  32. # rc_hotplug controls which services we allow to be hotplugged.
  33. # A hotplugged service is one started by a dynamic dev manager when a matching
  34. # hardware device is found.
  35. # Hotplugged services appear in the "hotplugged" runlevel.
  36. # If rc_hotplug is set to any value, we compare the name of this service
  37. # to every pattern in the value, from left to right, and we allow the
  38. # service to be hotplugged if it matches a pattern, or if it matches no
  39. # patterns. Patterns can include shell wildcards.
  40. # To disable services from being hotplugged, prefix patterns with "!".
  41. #If rc_hotplug is not set or is empty, all hotplugging is disabled.
  42. # Example - rc_hotplug="net.wlan !net.*"
  43. # This allows net.wlan and any service not matching net.* to be hotplugged.
  44. # Example - rc_hotplug="!net.*"
  45. # This allows services that do not match "net.*" to be hotplugged.
  46.  
  47. # rc_logger launches a logging daemon to log the entire rc process to
  48. # /var/log/rc.log
  49. # NOTE: Linux systems require the devfs service to be started before
  50. # logging can take place and as such cannot log the sysinit runlevel.
  51. rc_logger="YES"
  52.  
  53. # Through rc_log_path you can specify a custom log file.
  54. # The default value is: /var/log/rc.log
  55. rc_log_path="/var/log/rc.log"
  56.  
  57. # If you want verbose output for OpenRC, set this to yes. If you want
  58. # verbose output for service foo only, set it to yes in /etc/conf.d/foo.
  59. rc_verbose=yes
  60.  
  61. # By default we filter the environment for our running scripts. To allow other
  62. # variables through, add them here. Use a * to allow all variables through.
  63. #rc_env_allow="VAR1 VAR2"
  64.  
  65. # By default we assume that all daemons will start correctly.
  66. # However, some do not - a classic example is that they fork and return 0 AND
  67. # then child barfs on a configuration error. Or the daemon has a bug and the
  68. # child crashes. You can set the number of milliseconds start-stop-daemon
  69. # waits to check that the daemon is still running after starting here.
  70. # The default is 0 - no checking.
  71. rc_start_wait=100
  72.  
  73. # rc_nostop is a list of services which will not stop when changing runlevels.
  74. # This still allows the service itself to be stopped when called directly.
  75. #rc_nostop=""
  76.  
  77. # rc will attempt to start crashed services by default.
  78. # However, it will not stop them by default as that could bring down other
  79. # critical services.
  80. #rc_crashed_stop=NO
  81. #rc_crashed_start=YES
  82.  
  83. # Set rc_nocolor to yes if you do not want colors displayed in OpenRC
  84. # output.
  85. rc_nocolor=NO
  86.  
  87. ##############################################################################
  88. # MISC CONFIGURATION VARIABLES
  89. # There variables are shared between many init scripts
  90.  
  91. # Set unicode to YES to turn on unicode support for keyboards and screens.
  92. unicode="YES"
  93.  
  94. # This is how long fuser should wait for a remote server to respond. The
  95. # default is 60 seconds, but  it can be adjusted here.
  96. #rc_fuser_timeout=60
  97.  
  98. # Below is the default list of network fstypes.
  99. #
  100. # afs ceph cifs coda davfs fuse fuse.sshfs gfs glusterfs lustre ncpfs
  101. # nfs nfs4 ocfs2 shfs smbfs
  102. #
  103. # If you would like to add to this list, you can do so by adding your
  104. # own fstypes to the following variable.
  105. #extra_net_fs_list=""
  106.  
  107. ##############################################################################
  108. # SERVICE CONFIGURATION VARIABLES
  109. # These variables are documented here, but should be configured in
  110. # /etc/conf.d/foo for service foo and NOT enabled here unless you
  111. # really want them to work on a global basis.
  112. # If your service has characters in its name which are not legal in
  113. # shell variable names and you configure the variables for it in this
  114. # file, those characters should be replaced with underscores in the
  115. # variable names as shown below.
  116.  
  117. # Some daemons are started and stopped via start-stop-daemon.
  118. # We can set some things on a per service basis, like the nicelevel.
  119. #SSD_NICELEVEL="-19"
  120.  
  121. # Pass ulimit parameters
  122. # If you are using bash in POSIX mode for your shell, note that the
  123. # ulimit command uses a block size of 512 bytes for the -c and -f
  124. # options
  125. #rc_ulimit="-u 30"
  126.  
  127. # It's possible to define extra dependencies for services like so
  128. #rc_config="/etc/foo"
  129. #rc_need="openvpn"
  130. #rc_use="net.eth0"
  131. #rc_after="clock"
  132. #rc_before="local"
  133. #rc_provide="!net"
  134.  
  135. # You can also enable the above commands here for each service. Below is an
  136. # example for service foo.
  137. #rc_foo_config="/etc/foo"
  138. #rc_foo_need="openvpn"
  139. #rc_foo_after="clock"
  140.  
  141. # Below is an example for service foo-bar. Note that the '-' is illegal
  142. # in a shell variable name, so we convert it to an underscore.
  143. # example for service foo-bar.
  144. #rc_foo_bar_config="/etc/foo-bar"
  145. #rc_foo_bar_need="openvpn"
  146. #rc_foo_bar_after="clock"
  147.  
  148. # You can also remove dependencies.
  149. # This is mainly used for saying which servies do NOT provide net.
  150. #rc_net_tap0_provide="!net"
  151.  
  152. ##############################################################################
  153. # LINUX SPECIFIC OPTIONS
  154.  
  155. # This is the subsystem type. Valid options on Linux:
  156. # ""               - nothing special
  157. # "docker"         - Docker container manager
  158. # "lxc"            - Linux Containers
  159. # "openvz"         - Linux OpenVZ
  160. # "prefix"         - Prefix
  161. # "rkt"            - CoreOS container management system
  162. # "uml"            - Usermode Linux
  163. # "vserver"        - Linux vserver
  164. # "systemd-nspawn" - Container created by the systemd-nspawn utility
  165. # "xen0"           - Xen0 Domain
  166. # "xenU"           - XenU Domain
  167. # If this is commented out, automatic detection will be used.
  168. #
  169. # This should be set to the value representing the environment this file is
  170. # PRESENTLY in, not the virtualization the environment is capable of.
  171. #rc_sys=""
  172.  
  173. # This is the number of tty's used in most of the rc-scripts (like
  174. # consolefont, numlock, etc ...)
  175. rc_tty_number=12
  176.  
  177. ##############################################################################
  178. # CGROUPS RESOURCE MANAGEMENT
  179.  
  180. # If you have cgroups turned on in your kernel, this switch controls
  181. # whether or not a group for each controller is mounted under
  182. # /sys/fs/cgroup.
  183. # None of the other options in this section work if this is set to "NO".
  184. #rc_controller_cgroups="YES"
  185.  
  186. # The following settings allow you to set up values for the cgroup
  187. # controllers for your services.
  188. # They can be set in this file;, however, if you do this, the settings
  189. # will apply to all of your services.
  190. # If you want different settings for each service, place the settings in
  191. # /etc/conf.d/foo for service foo.
  192. # The format is to specify the names of the settings followed by their
  193. # values. Each variable can hold multiple settings.
  194. # For example, you would use this to set the cpu.shares setting in the
  195. # cpu controller to 512 for your service.
  196. # rc_cgroup_cpu="
  197. # cpu.shares 512
  198. # "
  199. #
  200. #For more information about the adjustments that can be made with
  201. #cgroups, see Documentation/cgroups/* in the linux kernel source tree.
  202.  
  203. # Set the blkio controller settings for this service.
  204. #rc_cgroup_blkio=""
  205.  
  206. # Set the cpu controller settings for this service.
  207. #rc_cgroup_cpu=""
  208.  
  209. # Add this service to the cpuacct controller (any value means yes).
  210. #rc_cgroup_cpuacct=""
  211.  
  212. # Set the cpuset controller settings for this service.
  213. #rc_cgroup_cpuset=""
  214.  
  215. # Set the devices controller settings for this service.
  216. #rc_cgroup_devices=""
  217.  
  218. # Set the hugetlb controller settings for this service.
  219. #rc_cgroup_hugetlb=""
  220.  
  221. # Set the memory controller settings for this service.
  222. #rc_cgroup_memory=""
  223.  
  224. # Set the net_cls controller settings for this service.
  225. #rc_cgroup_net_cls=""
  226.  
  227. # Set the net_prio controller settings for this service.
  228. #rc_cgroup_net_prio=""
  229.  
  230. # Set the pids controller settings for this service.
  231. #rc_cgroup_pids=""
  232.  
  233. # Set this to YES if yu want all of the processes in a service's cgroup
  234. # killed when the service is stopped or restarted.
  235. # This should not be set globally because it kills all of the service's
  236. # child processes, and most of the time this is undesirable. Please set
  237. # it in /etc/conf.d/<service>.
  238. # To perform this cleanup manually for a stopped service, you can
  239. # execute cgroup_cleanup with /etc/init.d/<service> cgroup_cleanup or
  240. # rc-service <service> cgroup_cleanup.
  241. # rc_cgroup_cleanup="NO"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement