Files
hackacad/docs/chapters/subcommands/sysrc.rst

24 lines
570 B
ReStructuredText
Raw Normal View History

2018-11-24 20:07:20 -07:00
sysrc
=====
The `sysrc` sub-command allows for safely editing system configuration files.
2025-02-23 11:57:54 -07:00
In jail terms, this allows us to toggle on/off services and options at startup.
2018-11-24 20:07:20 -07:00
.. code-block:: shell
ishmael ~ # bastille sysrc nginx nginx_enable="YES"
[nginx]:
nginx_enable: NO -> YES
See `man sysrc(8)` for more info.
2025-02-23 11:57:54 -07:00
.. code-block:: shell
ishmael ~ # bastille sysrc help
Usage: bastille sysrc [option(s)] TARGET args
cat << EOF
Options:
-a | --auto Auto mode. Start/stop jail(s) if required.
-x | --debug Enable debug mode.