[Unit] Description=semprini autonomous stack maintenance agent Documentation=https://git.semprini.me/paul/semprini-maintainer After=network-online.target Wants=network-online.target [Service] Type=simple # A template: install.sh fills in @USER@, @HOME@ and @DIR@. # Runs on the core host, as ubuntu. Commands run on the host directly; the # model is Claude through the Anthropic API. User=@USER@ Group=@USER@ WorkingDirectory=@DIR@ Environment=HOME=@HOME@ Environment=PATH=@HOME@/.local/bin:/usr/local/bin:/usr/bin:/bin Environment=PYDANTIC_AI_NO_BANNER=1 ExecStart=@DIR@/.venv/bin/python @DIR@/maintainer.py --config @DIR@/config.json Restart=always RestartSec=30 # Stopping kills the whole cgroup, an agent run in progress included. TimeoutStopSec=30 StandardOutput=journal StandardError=journal SyslogIdentifier=semprini-maintainer [Install] WantedBy=multi-user.target