Files
ansible/roles/mac/templates/podman-machine.plist.j2
T
PhilandClaude Opus 5.5 3036fa2d74 Mac: Podman VM job needs AbandonProcessGroup
`podman machine start` exits once the VM is up, and launchd then killed the
VM processes left in the job's process group, so a VM started by the job
stopped ~20 s later. Keep them with AbandonProcessGroup, and reload the job
when its plist changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 07:29:08 -07:00

34 lines
1.1 KiB
Django/Jinja

<?xml version="1.0" encoding="UTF-8"?>
<!-- {{ ansible_managed }} -->
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>{{ podman_machine_label }}</string>
<!-- Starts the VM at login and exits; the VM keeps running on its own. -->
<key>ProgramArguments</key>
<array>
<string>/opt/podman/bin/podman</string>
<string>machine</string>
<string>start</string>
</array>
<key>EnvironmentVariables</key>
<dict>
<key>PATH</key>
<string>/opt/podman/bin:/usr/bin:/bin:/usr/sbin:/sbin</string>
</dict>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<false/>
<!-- `podman machine start` exits once the VM is up; without this launchd
kills the VM processes it leaves behind. -->
<key>AbandonProcessGroup</key>
<true/>
<key>StandardOutPath</key>
<string>{{ ansible_user_dir }}/Library/Logs/podman-machine.log</string>
<key>StandardErrorPath</key>
<string>{{ ansible_user_dir }}/Library/Logs/podman-machine.log</string>
</dict>
</plist>