[Unit] Description=MoShiro Agent (rootless Podman container) After=network-online.target Wants=network-online.target [Service] EnvironmentFile=%h/.config/moshiro/agent.image Restart=always RestartSec=5 TimeoutStopSec=30 ExecStartPre=-/usr/bin/podman rm -f moshiro-agent ExecStart=/usr/bin/podman run --rm --name moshiro-agent --network host --read-only --security-opt no-new-privileges --security-opt label=disable --cap-drop all --tmpfs /tmp:rw,noexec,nosuid,size=64m,mode=1777 -v /etc/os-release:/etc/os-release:ro -v /proc:/host/proc:ro -v /sys:/host/sys:ro -v /:/host/root:ro -e MOSHIRO_NETWORK_SCOPE=host -e HOST_PROC=/host/proc -e HOST_SYS=/host/sys -e HOST_ROOT=/host/root -v moshiro-agent-config:/etc/moshiro -v moshiro-agent-status:/etc/moshiro/update-status:ro ${IMAGE} ExecStop=/usr/bin/podman stop -t 20 moshiro-agent [Install] WantedBy=default.target