[launchd] Add hungryroot plists
This commit is contained in:
49
launchd/Library/LaunchAgents/com.hungryroot.celery.plist
Normal file
49
launchd/Library/LaunchAgents/com.hungryroot.celery.plist
Normal 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>
|
||||||
|
|
||||||
49
launchd/Library/LaunchAgents/com.hungryroot.django.plist
Normal file
49
launchd/Library/LaunchAgents/com.hungryroot.django.plist
Normal 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>
|
||||||
|
|
||||||
49
launchd/Library/LaunchAgents/com.hungryroot.flower.plist
Normal file
49
launchd/Library/LaunchAgents/com.hungryroot.flower.plist
Normal 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>
|
||||||
|
|
||||||
Reference in New Issue
Block a user