Diff of Infrastructure And Operations/Systemd Openrc Cheatsheet at 3a5073b

diff --git a/infrastructure_and_operations/systemd_openrc_cheatsheet.myco b/infrastructure_and_operations/systemd_openrc_cheatsheet.myco
new file mode 100644
index 0000000..11626a5
--- /dev/null
+++ b/infrastructure_and_operations/systemd_openrc_cheatsheet.myco
@@ -0,0 +1,23 @@
+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 <servicename>`   |     `rc-update add <servicename>`       |
+| disable a service |  `systemctl disable <servicename>`    |      `rc-update del <servicename>`         |
+| start a service |  `systemctl start <servicename>`   |     `service <servicename> start`       |
+| stop a service |  `systemctl stop <servicename>`    |      `service <servicename> stop`         |
+| get service status |  `systemctl status <servicename>`    |      `service <servicename> status` (do not always trust this. search the process list as well)         |
+| reset crashed service | ??? | `service <servicename> zap` |
+| where is a service's configuration file at? |  usually `/etc/systemd/system/<servicename>.service`. it's listed after `Loaded:` in the output of `systemctl status <servicename>`    |      `/etc/init.d/<servicename>`         |
+| 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 <servicename> -n 100` (gets last 100 lines)  |  check inside the service configuration file (see above). it should have `output_log=<filepath>` and `error_log=<filepath>`   | 
+| 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/<servicename>` is the file.  Add one `var=value` per line        |
+}
+
+
+
+