Difference between revisions of "Sysrc"
(Created page with "{{welcome}} {{Navbar OpenRC}} ==Introduction== Category:Sysutils") |
(→Introduction) |
||
Line 4: | Line 4: | ||
==Introduction== | ==Introduction== | ||
+ | The [https://www.freebsd.org/cgi/man.cgi?query=sysrc&apropos=0&sektion=8&manpath=FreeBSD+12.1-RELEASE+and+Ports&arch=default&format=html sysrc] utility retrieves '''[[Rc.conf|rc.conf(5)]]''' variables from the collection of system '''[[Rc|rc]]''' files and allows processes with appropriate privilege to change values in a safe and effective manner. | ||
+ | ==Usage== | ||
+ | You can edit '''[[Rc.conf]]''' directly with a editor or with the command <code>sysrc</code> on the CLI. With <code>sysrc</code> you can alter '''[[Rc.conf]]''' safely. | ||
+ | With the <code>sysrc -a</code> you get information about all non-default settings in '''/etc/[[Rc.conf|rc.conf]]'''. | ||
− | + | '''Example''' | |
+ | $ sysrc -a<br/> | ||
+ | autofs_enable: YES<br/> | ||
+ | cupsd_enable: YES<br/> | ||
+ | devfs_system_ruleset: devfsrules_common<br/> | ||
+ | dsbmd_enable: NO<br/> | ||
+ | hald_enable: YES<br/> | ||
+ | hostname: yourname.ghostbsd-pc.home<br/> | ||
+ | ifconfig_em0: DHCP<br/> | ||
+ | ifconfig_nfe0: DHCP<br/> | ||
+ | keymap: de.kbd<br/> | ||
+ | kld_list: linux linux64 cuse<br/> | ||
+ | kldload_nvidia: nvidia-modeset nvidia<br/> | ||
+ | kldload_vbox: vboxdrv<br/> | ||
+ | lpd_enable: NO<br/> | ||
+ | ntpd_sync_on_start: YES<br/> | ||
+ | root_rw_mount: NO<br/> | ||
+ | sendmail_enable: NONE<br/> | ||
+ | sendmail_msp_queue_enable: NO<br/> | ||
+ | sendmail_outbound_enable: NO<br/> | ||
+ | sendmail_submit_enable: NO<br/> | ||
+ | vboxguest_enable: YES<br/> | ||
+ | vboxnet_enable: YES<br/> | ||
+ | vboxservice_enable: YES<br/> | ||
[[Category:Sysutils]] | [[Category:Sysutils]] |
Revision as of 14:23, 5 April 2020
Welcome to Sysrc. |
OpenRC | ||
---|---|---|
Scripts | ||
/etc/rc rc - shell |
/etc/rc.devd The generic hook into OpenRC. |
/sbin/rcorder Ordering rc-scripts |
/etc/init.d Scripts to run OpenRC |
/usr/local/etc/init.d Scripts to run OpenRC |
|
/etc/rc.d Scripts automatically executed at boot and shutdown |
/usr/local/etc/rc.d Special scripts |
|
Configuration | ||
/etc/devd.conf Configuration file for devd(8) |
/etc/conf.d Initscript Configuration Files |
/etc/rc.conf.d Smaller configuration files |
/etc/defaults/rc.conf Specifies the default settings for all the available options. |
/etc/rc.conf The global OpenRC configuration file |
/etc/rc.conf.ghostbsd GhostBSD specific configurations |
Tools/Helper | ||
/usr/sbin/sysrc Safely edit system rc files |
/bin/rc-status Shows which services are running |
/sbin/rc-update Add or delete services |
/sbin/rc-service Locate and run an OpenRC service |
||
Back to the System |
Introduction
The sysrc utility retrieves rc.conf(5) variables from the collection of system rc files and allows processes with appropriate privilege to change values in a safe and effective manner.
Usage
You can edit Rc.conf directly with a editor or with the command sysrc
on the CLI. With sysrc
you can alter Rc.conf safely.
With the sysrc -a
you get information about all non-default settings in /etc/rc.conf.
Example
$ sysrc -a
autofs_enable: YES
cupsd_enable: YES
devfs_system_ruleset: devfsrules_common
dsbmd_enable: NO
hald_enable: YES
hostname: yourname.ghostbsd-pc.home
ifconfig_em0: DHCP
ifconfig_nfe0: DHCP
keymap: de.kbd
kld_list: linux linux64 cuse
kldload_nvidia: nvidia-modeset nvidia
kldload_vbox: vboxdrv
lpd_enable: NO
ntpd_sync_on_start: YES
root_rw_mount: NO
sendmail_enable: NONE
sendmail_msp_queue_enable: NO
sendmail_outbound_enable: NO
sendmail_submit_enable: NO
vboxguest_enable: YES
vboxnet_enable: YES
vboxservice_enable: YES