[launchd] Add hungryroot plists

This commit is contained in:
Colin Powell
2026-01-08 15:41:28 -05:00
parent 1706851f41
commit 015e60639d
3 changed files with 147 additions and 0 deletions

View File

@ -0,0 +1,49 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<!-- A unique label -->
<key>Label</key>
<string>com.hungryroot.celery</string>
<!-- Use bash to allow `cd &&` -->
<key>ProgramArguments</key>
<array>
<string>/bin/bash</string>
<string>-lc</string>
<string>
cd /Users/colin.powell/src/github.com/hungryroot/hungryroot \
&& eval "$(direnv export bash)" \
&& just celery
</string>
</array>
<!-- Run when the agent is loaded -->
<key>RunAtLoad</key>
<true/>
<!-- Optional: restart if it exits -->
<key>KeepAlive</key>
<true/>
<!-- Set a working directory explicitly (recommended) -->
<key>WorkingDirectory</key>
<string>/Users/colin.powell/src/github.com/hungryroot/hungryroot</string>
<!-- Log output -->
<key>StandardOutPath</key>
<string>/tmp/hungryroot-celery.log</string>
<key>StandardErrorPath</key>
<string>/tmp/hungryroot-celery.log</string>
<!-- Ensure PATH includes Homebrew -->
<key>EnvironmentVariables</key>
<dict>
<key>PATH</key>
<string>/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin</string>
</dict>
</dict>
</plist>

View File

@ -0,0 +1,49 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<!-- A unique label -->
<key>Label</key>
<string>com.hungryroot.django</string>
<!-- Use bash to allow `cd &&` -->
<key>ProgramArguments</key>
<array>
<string>/bin/bash</string>
<string>-lc</string>
<string>
cd /Users/colin.powell/src/github.com/hungryroot/hungryroot \
&& eval "$(direnv export bash)" \
&& just django
</string>
</array>
<!-- Run when the agent is loaded -->
<key>RunAtLoad</key>
<true/>
<!-- Optional: restart if it exits -->
<key>KeepAlive</key>
<true/>
<!-- Set a working directory explicitly (recommended) -->
<key>WorkingDirectory</key>
<string>/Users/colin.powell/src/github.com/hungryroot/hungryroot</string>
<!-- Log output -->
<key>StandardOutPath</key>
<string>/tmp/hungryroot-django.log</string>
<key>StandardErrorPath</key>
<string>/tmp/hungryroot-django.log</string>
<!-- Ensure PATH includes Homebrew -->
<key>EnvironmentVariables</key>
<dict>
<key>PATH</key>
<string>/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin</string>
</dict>
</dict>
</plist>

View File

@ -0,0 +1,49 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<!-- A unique label -->
<key>Label</key>
<string>com.hungryroot.flower</string>
<!-- Use bash to allow `cd &&` -->
<key>ProgramArguments</key>
<array>
<string>/bin/bash</string>
<string>-lc</string>
<string>
cd /Users/colin.powell/src/github.com/hungryroot/hungryroot \
&& eval "$(direnv export bash)" \
&& just flower
</string>
</array>
<!-- Run when the agent is loaded -->
<key>RunAtLoad</key>
<true/>
<!-- Optional: restart if it exits -->
<key>KeepAlive</key>
<true/>
<!-- Set a working directory explicitly (recommended) -->
<key>WorkingDirectory</key>
<string>/Users/colin.powell/src/github.com/hungryroot/hungryroot</string>
<!-- Log output -->
<key>StandardOutPath</key>
<string>/tmp/hungryroot-flower.log</string>
<key>StandardErrorPath</key>
<string>/tmp/hungryroot-flower.log</string>
<!-- Ensure PATH includes Homebrew -->
<key>EnvironmentVariables</key>
<dict>
<key>PATH</key>
<string>/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin</string>
</dict>
</dict>
</plist>