spacepaste

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