Origin for each line in
README.md
from check-in be69b48ea9:
be69b48ea9 2024-12-24 1: # MRC is init replacement for DragonFly BSD, written in BSD Make.
be69b48ea9 2024-12-24 2:
be69b48ea9 2024-12-24 3: - Can start services in parallel.
be69b48ea9 2024-12-24 4: - Can manage services differently: via svc/daemon/just by starting them in
be69b48ea9 2024-12-24 5: background.
be69b48ea9 2024-12-24 6: - Faster and easier on resources comparing to rc.d, for example whole
be69b48ea9 2024-12-24 7: configuration is prepared only once before running anything, rc.d is
be69b48ea9 2024-12-24 8: calculating all variables for each service independently.
be69b48ea9 2024-12-24 9: - Service definition is simplified a lot.
be69b48ea9 2024-12-24 10: - Naming and logic is not yet finalized.
be69b48ea9 2024-12-24 11: - Fun (for me).
be69b48ea9 2024-12-24 12:
be69b48ea9 2024-12-24 13: !!!WARNING!!! This is a project in an alpha stage done for pure fun, that
be69b48ea9 2024-12-24 14: replaces system functionality and may prevent your system from correctly
be69b48ea9 2024-12-24 15: booting up. In case you run into any issues make sure to replace `/etc/rc`
be69b48ea9 2024-12-24 16: and `/etc/rc.shutdown` with default versions by running:
be69b48ea9 2024-12-24 17:
be69b48ea9 2024-12-24 18: ```Shell
be69b48ea9 2024-12-24 19: cp -f /usr/src/etc/rc /etc/
be69b48ea9 2024-12-24 20: cp -f /usr/src/etc/rc.shutdown /etc/
be69b48ea9 2024-12-24 21: ```
be69b48ea9 2024-12-24 22:
be69b48ea9 2024-12-24 23: This also means you need to have sources checked out to `/usr/src`.
be69b48ea9 2024-12-24 24:
be69b48ea9 2024-12-24 25: ## Install
be69b48ea9 2024-12-24 26:
be69b48ea9 2024-12-24 27: Checkout this to /etc/mrc, `cd /etc/mrc && make install`.
be69b48ea9 2024-12-24 28:
be69b48ea9 2024-12-24 29: ## Configuration
be69b48ea9 2024-12-24 30:
be69b48ea9 2024-12-24 31: Can be configured almost the same way as rc.d, by editing `/etc/mrc.mk`.
be69b48ea9 2024-12-24 32: Syntax used is Make syntax:
be69b48ea9 2024-12-24 33:
be69b48ea9 2024-12-24 34: ```Make
be69b48ea9 2024-12-24 35: DUMPDEV=/dev/serno/something.s5
be69b48ea9 2024-12-24 36: HOSTNAME=Amnesiac
be69b48ea9 2024-12-24 37: KLD_LIST=ahci wlan_ccmp wlan_amrr wlan_rssadapt acpi_wmi aesni snd_hda amdtemp ums nvmm amdsbwd acpi_video if_iwm radeon
be69b48ea9 2024-12-24 38: WLANS_iwm0=wlan0
be69b48ea9 2024-12-24 39: WLANS_wlan0_ARGS=country UA powersave
be69b48ea9 2024-12-24 40: RPC_UMNTALL_ENABLE=yes
be69b48ea9 2024-12-24 41:
be69b48ea9 2024-12-24 42: DAEMON_automountd_ENABLE=yes
be69b48ea9 2024-12-24 43: DAEMON_dhcpcd_ENABLE=yes
be69b48ea9 2024-12-24 44: DAEMON_inetd_ENABLE=yes
be69b48ea9 2024-12-24 45: DAEMON_powerd_ENABLE=yes
be69b48ea9 2024-12-24 46:
be69b48ea9 2024-12-24 47: #DAEMON_slim_ENABLE=yes
be69b48ea9 2024-12-24 48: DAEMON_dntpd_ENABLE=yes
be69b48ea9 2024-12-24 49: #DAEMON_smartd_ENABLE=yes
be69b48ea9 2024-12-24 50: DAEMON_bsdstats_ENABLE=yes
be69b48ea9 2024-12-24 51: DAEMON_lldpd_ENABLE=yes
be69b48ea9 2024-12-24 52: DAEMON_moused_ENABLE=no
be69b48ea9 2024-12-24 53: DAEMON_wpa_supplicant_ENABLE=yes
be69b48ea9 2024-12-24 54: DAEMON_arpwatch_ENABLE=yes
be69b48ea9 2024-12-24 55: DAEMON_dbus_ENABLE=yes
be69b48ea9 2024-12-24 56:
be69b48ea9 2024-12-24 57: DAEMON_sensorsd_ENABLE=yes
be69b48ea9 2024-12-24 58: #DAEMON_sndiod_ENABLE=yes
be69b48ea9 2024-12-24 59: ```
be69b48ea9 2024-12-24 60:
be69b48ea9 2024-12-24 61: ## Usage
be69b48ea9 2024-12-24 62:
be69b48ea9 2024-12-24 63: You can control services directly via `svc` or `daemon`, or you can use special
be69b48ea9 2024-12-24 64: targets under `/etc/mrc`:
be69b48ea9 2024-12-24 65:
be69b48ea9 2024-12-24 66: ```Shell
be69b48ea9 2024-12-24 67: # this will start service if it's enabled
be69b48ea9 2024-12-24 68: $ make <service>
be69b48ea9 2024-12-24 69:
be69b48ea9 2024-12-24 70: # this will show running service _status
be69b48ea9 2024-12-24 71: $ make <service>_status
be69b48ea9 2024-12-24 72:
be69b48ea9 2024-12-24 73: # stop and deconstruct service, removing running svc/daemon instance
be69b48ea9 2024-12-24 74: $ make <service>_exit
be69b48ea9 2024-12-24 75: ```