[systemd] Use just for celery too

This commit is contained in:
2026-05-01 08:51:19 -04:00
parent 9d86c61423
commit aaef900cf1

View File

@ -7,7 +7,7 @@ Wants=network-online.target
Type=simple Type=simple
Environment=PATH=%h/.local/bin:/home/linuxbrew/.linuxbrew/bin:/usr/local/bin:/usr/bin:/bin Environment=PATH=%h/.local/bin:/home/linuxbrew/.linuxbrew/bin:/usr/local/bin:/usr/bin:/bin
EnvironmentFile=%h/.local/etc/django/%i.env EnvironmentFile=%h/.local/etc/django/%i.env
ExecStart=/bin/bash -c 'cd "$DJANGO_PATH" && exec direnv exec "$DJANGO_PATH" celery -A "$CELERY_APP" worker' ExecStart=/bin/bash -c 'cd "$DJANGO_PATH" && direnv exec "$DJANGO_PATH" just celery'
Restart=on-failure Restart=on-failure
RestartSec=2 RestartSec=2
StandardOutput=append:/tmp/celery.log StandardOutput=append:/tmp/celery.log