I'm creating a this page because of how frustrated I am with the OpenRC init system. We use Alpine for a lot of stuff so it's important to know how to use OpenRC init. table { ! description ! systemd command ! openrc command ! | list all services | `systemctl` or `systemctl \| cat` (no pager) | `rc-status --servicelist` | | list enabled services | `systemctl list-unit-files \| grep enabled` | `rc-status` | | enable a service | `systemctl enable ` | `rc-update add ` | | disable a service | `systemctl disable ` | `rc-update del ` | | start a service | `systemctl start ` OR, better: `systemctl enable --now ` | `service start` | | stop a service | `systemctl stop ` OR, better: `systemctl disable --now ` | `service stop` | | get service status | `systemctl status ` | `service status` (do not always trust this. search the process list as well) | | reset crashed service | ??? | `service zap` | | where is a service's configuration file at? | usually `/etc/systemd/system/.service`. it's listed after `Loaded:` in the output of `systemctl status ` | `/etc/init.d/` | | how to make service configuration file changes take effect | `systemctl daemon-reload` | no action required | | how to view the logs for a service | `journalctl -u -n 100` (gets last 100 lines) | check inside the service configuration file (see above). it should have `output_log=` and `error_log=` | | how to configure environment variables for a service? | you can [[ https://www.baeldung.com/linux/systemd-services-environment-variables | use the `Environment="var=value"` in the service configuration file ]] | `/etc/default/` is the file. Add one `var=value` per line | }