[Unit]
Description=Celery dev runner for %I
After=network-online.target
Wants=network-online.target

[Service]
Type=simple
Environment=PATH=%h/.local/bin:/home/linuxbrew/.linuxbrew/bin:/usr/local/bin:/usr/bin:/bin
EnvironmentFile=%h/.local/etc/django/%i.env
ExecStart=/bin/bash -c 'cd "$DJANGO_PATH" && direnv exec "$DJANGO_PATH" just celery'
Restart=on-failure
RestartSec=2
StandardOutput=append:/tmp/celery.log
StandardError=inherit

[Install]
WantedBy=default.target
