[[services]] installs one. Because that needs administrator rights, it requires installer.scope = "machine".
bach.toml
During setup
- First install: services are created, and
autoordelayedones started. One that doesn’t start within 30 seconds fails the install, which is then undone. - Update: running services are stopped (up to 30 seconds), files replaced, definitions updated, and services started again if they were running or
startsays so. Services no longer listed are removed. A failure restores the previous version. - Removal: services are stopped and deleted before the files. A problem here is logged but doesn’t stop removal.
bach build --msi refuses apps with services. bach inspect and bach diff show them. On macOS, use [[macos.agents]].