systemd/open-autosecure.service.example
[Unit]
Description=open-autosecure Discord bot
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
# Linux systemd unit. macOS: launchd/com.open-autosecure.plist.example
# Windows: windows/install-task.ps1 (or start.cmd). Any OS: ./start.sh or python -m bot.
# Adjust WorkingDirectory/ExecStart to the clone. Run `python setup.py` once
# first; bot tokens live in the SQLite DB, not this file.
WorkingDirectory=/opt/open-autosecure
ExecStart=/opt/open-autosecure/.venv/bin/python -m bot
Restart=on-failure
RestartSec=5
# Optional infra overrides -- see .env.example. Uncomment/edit as needed;
# everything else (Discord tokens, security email, IMAP, proxy)
# is configured via `python setup.py`, not here.
# Environment=OAS_DB_PATH=/opt/open-autosecure/db/open_autosecure.db
# Environment=OAS_META_HOST=127.0.0.1
# Environment=OAS_META_PORT=8787
[Install]
WantedBy=multi-user.target