# launch_daemon job for the *packaged* haiku-mgmt-agent. Ships inside the hpkg
# as data/launch/haiku-mgmt-agent, so packagefs exposes it at
# /boot/system/data/launch/haiku-mgmt-agent and launch_daemon starts the agent
# on every boot -- this is the self-register path the AMI bake relies on (F4).
#
# The sibling file `haiku-mgmt-agent` is the same job for a manual
# non-packaged install (/boot/system/non-packaged/bin + settings/launch); its
# header comments explain the service/legacy/no-network-condition choices,
# which apply here unchanged.
#
# To enable fleet self-update (F3), append to the launch line:
#   --update-manifest s3://<bucket>/<key>
# The manifest must name a strictly newer version; see docs/design-roadmap.md.

service x-vnd.haiku-mgmt-agent {
	launch /boot/system/bin/haiku-mgmt-agent
	legacy
}
