From 197b320b3b4fa43e2955ba44ead723081600e7dd Mon Sep 17 00:00:00 2001 From: Cal Corum Date: Fri, 19 Dec 2025 00:20:01 -0600 Subject: [PATCH] Add systemd service file for auto-start MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - User service file for ~/.config/systemd/user/ - Restarts on failure with 5s delay - Logs to journald Install with: cp voice-server.service ~/.config/systemd/user/ systemctl --user daemon-reload systemctl --user enable --now voice-server 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- voice-server.service | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 voice-server.service diff --git a/voice-server.service b/voice-server.service new file mode 100644 index 0000000..326af73 --- /dev/null +++ b/voice-server.service @@ -0,0 +1,20 @@ +[Unit] +Description=Voice Server - Local TTS HTTP Service +Documentation=https://github.com/calcorum/voice-server +After=network.target sound.target + +[Service] +Type=simple +WorkingDirectory=/mnt/NV2/Development/voice-server +Environment=PATH=/mnt/NV2/Development/voice-server/.venv/bin:/usr/bin:/bin +ExecStart=/mnt/NV2/Development/voice-server/.venv/bin/uvicorn app.main:app --host 0.0.0.0 --port 8888 +Restart=on-failure +RestartSec=5 + +# Logging +StandardOutput=journal +StandardError=journal +SyslogIdentifier=voice-server + +[Install] +WantedBy=default.target