Skip to content

Commit 652d31a

Browse files
committed
chore(release): bump to version 0.10.0
1 parent be62994 commit 652d31a

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [0.10.0] - 2025-12-14
11+
12+
### Changed
13+
14+
- **BREAKING CHANGE**: Launchd services with restart policies (`RestartPolicy::Always`, `OnFailure`, or `OnSuccess`) no longer auto-start when `install()` is called. Services must now be explicitly started using `start()`. This provides cross-platform consistency where `install()` registers the service definition without starting it, matching the behavior of systemd and other service managers.
15+
- Services with `KeepAlive` configured are now installed with `Disabled=true` in the plist
16+
- The `start()` function removes the `Disabled` key and reloads the service
17+
- The `autostart` parameter continues to control only `RunAtLoad` (whether service starts on OS boot), not initial install behavior
18+
- Migration: Add explicit `manager.start(ctx)?` call after `manager.install(ctx)?` if you need the service to start immediately
19+
20+
### Fixed
21+
22+
- Fixed incorrect Launchd restart policy implementation for `RestartPolicy::OnFailure` and `RestartPolicy::OnSuccess`:
23+
- `OnFailure` now correctly uses `KeepAlive` dictionary with `SuccessfulExit=false` (restart on non-zero exit) instead of `KeepAlive=true` (always restart)
24+
- `OnSuccess` now correctly uses `SuccessfulExit=true` (restart on zero exit) instead of `SuccessfulExit=false`
25+
1026
## [0.9.0] - 2025-11-22
1127

1228
### Changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "service-manager"
33
description = "Provides adapters to communicate with various operating system service managers"
44
categories = ["config"]
55
keywords = ["generator"]
6-
version = "0.9.0"
6+
version = "0.10.0"
77
authors = ["Chip Senkbeil <chip@senkbeil.org>"]
88
edition = "2021"
99
homepage = "https://github.com/chipsenkbeil/service-manager-rs"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Add the following to your `Cargo.toml`:
3131

3232
```toml
3333
[dependencies]
34-
service-manager = "0.8"
34+
service-manager = "0.10"
3535
```
3636

3737
## Examples

0 commit comments

Comments
 (0)