# Steward without Docker: the server, run from a virtualenv in /opt/steward. # The image is the usual way to run it; this unit is for a host without one. # Steward keeps its secret key (secret.key) and its safety backups (backups/) # under /data, so the steward user needs to be able to write there. [Unit] Description=Steward monitoring server After=network.target postgresql.service [Service] Type=simple User=steward WorkingDirectory=/opt/steward ExecStart=/opt/steward/.venv/bin/steward --config /etc/steward/config.yaml # A restore from the web UI ends with exit code 3, so this brings Steward # back with the restored settings (a clean exit 0 would be left stopped). Restart=on-failure RestartSec=5s Environment=PYTHONUNBUFFERED=1 [Install] WantedBy=multi-user.target