[Unit]
Description=RPGPT/PlayGPT server
ConditionPathExists=/root/rpgpt/server
After=network.target

[Service]
Type=simple
User=root
Group=root
WorkingDirectory=/root/rpgpt/server
ExecStart=/usr/bin/go run .
EnvironmentFile=/root/.high_security_vars
Restart=on-failure
RestartSec=10
SyslogIdentifier=appgoservice

[Install]
WantedBy=multi-user.target