[Unit]
Description=光湖语言系统 · 公钥守门人复活协议
After=network.target network-online.target
Wants=network-online.target

[Service]
Type=simple
User=root
WorkingDirectory=/opt/zhuyuan/revive-guard
ExecStart=/usr/bin/python3 /opt/zhuyuan/revive-guard/revive-guard.py
Restart=always
RestartSec=5
StandardOutput=append:/opt/zhuyuan/revive-guard/logs/out.log
StandardError=append:/opt/zhuyuan/revive-guard/logs/err.log
Environment=REVIVE_GUARD_PORT=8922
# ⊢ QQ_SMTP_AUTH_CODE 从服务器 /etc/environment 或 systemd override 注入
# ⊢ 不进仓库 · 不走默认值
EnvironmentFile=-/opt/zhuyuan/revive-guard/.env

# 安全加固
NoNewPrivileges=yes
PrivateTmp=yes

[Install]
WantedBy=multi-user.target
