Files
dotfiles/systemd/.config/systemd/user/hungryroot-celery.service

24 lines
595 B
Desktop File

[Unit]
Description=Hungryroot Celery (just celery)
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
WorkingDirectory=%h/src/github.com/hungryroot/hungryroot
# Ensure Homebrew/user bins are visible (adjust if needed)
Environment=PATH=%h/.local/bin:/home/linuxbrew/.linuxbrew/bin:/usr/local/bin:/usr/bin:/bin
# Load direnv env for the directory, then run
ExecStart=/bin/bash -lc 'eval "$(direnv export bash)" && just celery'
Restart=on-failure
RestartSec=2
StandardOutput=append:/tmp/hungryroot-celery.log
StandardError=inherit
[Install]
WantedBy=default.target