Skip to content

Conversation

@jglogan
Copy link
Contributor

@jglogan jglogan commented Sep 20, 2025

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Motivation and Context

Allows us to add commands to support post-installation, migration, etc.

Testing

  • Tested locally
  • Added/updated tests
  • Added/updated docs

Comment on lines 70 to 83
let xpc = XPCServer(
identifier: machServiceLabel,
routes: [
SandboxRoutes.bootstrap.rawValue: server.bootstrap,
SandboxRoutes.createProcess.rawValue: server.createProcess,
SandboxRoutes.state.rawValue: server.state,
SandboxRoutes.stop.rawValue: server.stop,
SandboxRoutes.kill.rawValue: server.kill,
SandboxRoutes.resize.rawValue: server.resize,
SandboxRoutes.wait.rawValue: server.wait,
SandboxRoutes.start.rawValue: server.startProcess,
SandboxRoutes.dial.rawValue: server.dial,
],
log: log
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is missing the new setup we have after the reworking.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rebased and relocated all the new setup from RuntimeLinuxHelper.swift to the start command.

- Part of apple#653.
- No need for `defaultCommand` since ContainerService
  startup will write a new launchd plist with the
  `start` subcommand included.
@jglogan jglogan merged commit 076d28e into apple:main Sep 23, 2025
2 checks passed
@jglogan jglogan deleted the plugin-start branch September 23, 2025 17:05
jglogan added a commit that referenced this pull request Sep 23, 2025
## Motivation and Context
#654 forgot to include the shutdown XPC that was added in #628.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants