[Unit]
Description=Dewy Oracle
After=network.target

[Service]
Type=simple
User=blance
WorkingDirectory=/home/blance/absRecommend
Environment="PATH=/home/blance/absRecommend/venv/bin:/usr/local/bin:/usr/bin:/bin"
ExecStart=/home/blance/absRecommend/venv/bin/python main.py

# Restart policy
Restart=always
RestartSec=5

# Logging
StandardOutput=journal
StandardError=journal
SyslogIdentifier=absrecommend

# Security settings
NoNewPrivileges=true
PrivateTmp=true

[Install]
WantedBy=multi-user.target
