Advertisement
robi_69

rc.conf

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