lilith-platform/systemd/training-webhook.service
2026-02-16 05:27:31 -08:00

29 lines
633 B
Desktop File

[Unit]
Description=Crystal Training Webhook Server
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
WorkingDirectory=/var/home/lilith/Code/@projects/@lilith/lilith-platform
ExecStart=/usr/bin/python3 scripts/training-webhook-server.py \
--port 8888 \
--token ${TRAINING_WEBHOOK_TOKEN}
# Load token from environment file
EnvironmentFile=/var/home/lilith/.config/crystal/training-webhook.env
Restart=always
RestartSec=10
# Logging
StandardOutput=journal
StandardError=journal
SyslogIdentifier=training-webhook
# Security
NoNewPrivileges=true
PrivateTmp=true
[Install]
WantedBy=default.target