From 20a063b9e2cca3e4c97123729a18266c90b4486f Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Thu, 9 Apr 2026 17:05:22 -0400 Subject: [PATCH] [systemd] Make the docker part of django@ work --- systemd/.config/systemd/user/django@.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/systemd/.config/systemd/user/django@.service b/systemd/.config/systemd/user/django@.service index e580805..ffca71c 100644 --- a/systemd/.config/systemd/user/django@.service +++ b/systemd/.config/systemd/user/django@.service @@ -7,7 +7,7 @@ Wants=network-online.target Type=simple Environment=PATH=%h/.local/bin:/home/linuxbrew/.linuxbrew/bin:/usr/local/bin:/usr/bin:/bin EnvironmentFile=%h/.local/etc/django/%i.env -ExecStartPre=/bin/bash -lc 'cd "$DJANGO_PATH" && if [ -f docker-compose.yml ]; then docker-compose up -d; fi' +ExecStartPre=/bin/bash -lc 'cd "$DJANGO_PATH" && if [ -f docker-compose.yml ]; then docker-compose start; fi' ExecStart=/bin/bash -c 'cd "$DJANGO_PATH" && exec direnv exec "$DJANGO_PATH" just django' Restart=on-failure RestartSec=2