[Unit] Description=Mozart AI Agent Orchestrator After=network-online.target Wants=network-online.target [Service] Type=simple User=mozart Group=mozart WorkingDirectory=/home/mozart/mozart ExecStart=/home/mozart/mozart/mozart up --foreground EnvironmentFile=/home/mozart/.mozart/env # Rootless Podman needs XDG_RUNTIME_DIR to find its socket. # 1001 is the default UID for the first non-root user on Ubuntu. # If the mozart user gets a different UID, update this value. Environment=XDG_RUNTIME_DIR=/run/user/1001 Restart=on-failure RestartSec=5 # Podman needs cgroup delegation to manage container resources Delegate=yes # Send SIGTERM to main process, SIGKILL to remaining container subprocesses KillMode=mixed [Install] WantedBy=multi-user.target