Compare commits

...

No commits in common. "ca1612f3837de8631abf28225d00a7fe87beb3ea" and "ef253e214a48178a5e606f353d84b0c43da485d8" have entirely different histories.

View File

@ -16,7 +16,7 @@ go build
### Running as a service ### Running as a service
You are likely going to want to run the tool as a service to ensure it runs at boot and restarts in case of failures. Below is an example service config file you can place in `/etc/systemd/system/midi-request-trigger.service` on a linux system to run as a service if you install the binary in `/usr/local/bin/`. You are likely going to want to run the tool as a service to ensure it runs at boot and restarts in case of failures. Below is an example service config file you can place in `/etc/systemd/system/service-notifications.service` on a linux system to run as a service if you install the binary in `/usr/local/bin/`.
```systemd ```systemd
[Unit] [Unit]
@ -75,17 +75,17 @@ On MacOS, you can setup a Launch Agent in `~/Library/LaunchAgents/com.mrgeckosme
Start with: Start with:
```bash ```bash
launchctl load ~/Library/LaunchAgents/com.mrgeckosmedia.midi-request-trigger.plist launchctl load ~/Library/LaunchAgents/com.mrgeckosmedia.service-notifications.plist
``` ```
Check status with: Check status with:
```bash ```bash
launchctl list com.mrgeckosmedia.midi-request-trigger launchctl list com.mrgeckosmedia.service-notifications
``` ```
Stop with: Stop with:
```bash ```bash
launchctl unload ~/Library/LaunchAgents/com.mrgeckosmedia.midi-request-trigger.plist launchctl unload ~/Library/LaunchAgents/com.mrgeckosmedia.service-notifications.plist
``` ```
## Cron job ## Cron job