# Served by Steward at /plugins/host_agent/files/steward-agent.service and # installed by install.sh and the host_agent playbooks: one copy of the unit. [Unit] Description=Steward host agent After=network-online.target Wants=network-online.target [Service] Type=simple User=steward-agent Environment=STEWARD_AGENT_CONFIG=/etc/steward-agent.conf ExecStart=/usr/bin/env python3 /usr/local/lib/steward-agent/agent.py Restart=on-failure RestartSec=5 # Stopping waits for the agent's last post, bounded at 10 s. TimeoutStopSec=30 NoNewPrivileges=true ProtectSystem=strict ProtectHome=true PrivateTmp=true ReadOnlyPaths=/proc /sys # The one place the agent writes: requests to the maintenance helper (#5766). ReadWritePaths=-/var/lib/steward-agent/requests [Install] WantedBy=multi-user.target