From 0df46133bed4444a96a2e6d23db947a2fe82d9a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Helle=C5=9Ben?= Date: Tue, 17 Mar 2026 21:21:33 +0100 Subject: [PATCH] Update environment variable file and service configuration --- systemd/anewdawn.env.example | 7 +------ systemd/anewdawn.service | 4 ++-- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/systemd/anewdawn.env.example b/systemd/anewdawn.env.example index 3e8a586..074a676 100644 --- a/systemd/anewdawn.env.example +++ b/systemd/anewdawn.env.example @@ -1,11 +1,6 @@ # Copy this file to /etc/ANewDawn/ANewDawn.env and fill in the required values. # Make sure the directory is owned by the user running the service (e.g., "lovinator"). -# Discord bot token DISCORD_TOKEN= - -# OpenAI token (for GPT-5 and other OpenAI models) OPENAI_TOKEN= - -# Optional: additional env vars used by your bot -# MY_CUSTOM_VAR= +OLLAMA_API_KEY= diff --git a/systemd/anewdawn.service b/systemd/anewdawn.service index 6ec9e9a..bfdd50d 100644 --- a/systemd/anewdawn.service +++ b/systemd/anewdawn.service @@ -10,13 +10,13 @@ User=lovinator Group=lovinator # The project directory containing main.py (update as needed). -WorkingDirectory=/home/lovinator/Code/ANewDawn +WorkingDirectory=/home/lovinator/ANewDawn/ # Load environment variables (see systemd/anewdawn.env.example). EnvironmentFile=/etc/ANewDawn/ANewDawn.env # Use the python interpreter from your environment (system python is fine if dependencies are installed). -ExecStart=/usr/bin/env python3 main.py +ExecStart=/usr/bin/uv run main.py Restart=on-failure RestartSec=5