fix(deps): update rust crate service-manager to 0.11 - #23
Open
MFSGA wants to merge 1 commit into
Open
Conversation
MFSGA
force-pushed
the
renovate/service-manager-0.x
branch
7 times, most recently
from
July 17, 2026 18:55
0c94b56 to
ab95026
Compare
MFSGA
force-pushed
the
renovate/service-manager-0.x
branch
7 times, most recently
from
July 24, 2026 19:14
36065a7 to
a7aa3ed
Compare
MFSGA
force-pushed
the
renovate/service-manager-0.x
branch
7 times, most recently
from
July 31, 2026 19:09
b7edd01 to
41c846f
Compare
MFSGA
force-pushed
the
renovate/service-manager-0.x
branch
3 times, most recently
from
August 3, 2026 19:20
6c7f469 to
2887b69
Compare
MFSGA
force-pushed
the
renovate/service-manager-0.x
branch
from
August 4, 2026 19:20
2887b69 to
5c7d627
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.8→0.11Release Notes
chipsenkbeil/service-manager-rs (service-manager)
v0.11.0Compare Source
Changed
RestartPolicy::OnFailurewith two new fields toprevent infinite restart loops:
max_retries: Option<u32>— Maximum number of restart attempts before theservice stops. When
None, the service restarts indefinitely (previousbehavior).
reset_after_secs: Option<u32>— Duration in seconds after which the failurecounter resets. If the service runs successfully for this long, previous
failures are forgotten and the retry counter starts fresh. When
None, theplatform default is used.
max_retries: None, reset_after_secs: Noneto existingRestartPolicy::OnFailure { delay_secs }constructions to preserve currentbehavior.
Added
max_retriesis set, the WinSW backend generates multiple<onfailure action="restart"/>elements (one per retry) followed by<onfailure action="none"/>to stop the service after exhausting retries. Whenreset_after_secsis set, a<resetfailure>element is generated (unless aWinSW-specific
reset_failure_timeis already configured).implement
max_retriesorreset_after_secs, but there is potential to extendthem in the future (e.g., systemd's
StartLimitBurst/StartLimitIntervalSec).failsubcommand to the system test binary for simulating crashingservices.
should_stop_winsw_service_after_max_retries)that verifies a failing WinSW service stops after exhausting its retry limit.
v0.10.0Compare Source
Changed
RestartPolicy::Always,OnFailure, orOnSuccess) no longer auto-start wheninstall()is called. Services must now be explicitly started usingstart(). This provides cross-platform consistency whereinstall()registers the service definition without starting it, matching the behavior of systemd and other service managers.KeepAliveconfigured are now installed withDisabled=truein the pliststart()function removes theDisabledkey and reloads the serviceautostartparameter continues to control onlyRunAtLoad(whether service starts on OS boot), not initial install behaviormanager.start(ctx)?call aftermanager.install(ctx)?if you need the service to start immediatelyFixed
RestartPolicy::OnFailureandRestartPolicy::OnSuccess:OnFailurenow correctly usesKeepAlivedictionary withSuccessfulExit=false(restart on non-zero exit) instead ofKeepAlive=true(always restart)OnSuccessnow correctly usesSuccessfulExit=true(restart on zero exit) instead ofSuccessfulExit=falsev0.9.0Compare Source
Changed
BREAKING CHANGE: Replaced
disable_restart_on_failure: boolfield withrestart_policy: RestartPolicyinServiceInstallCtx.RestartPolicyenum provides a cross-platform abstraction for service-restart behavior with four variants:RestartPolicy::Never- Service never restartsRestartPolicy::Always { delay_secs: Option<u32> }- Service always restarts regardless of exit statusRestartPolicy::OnFailure { delay_secs: Option<u32> }- Service restarts only on non-zero exit (default)RestartPolicy::OnSuccess { delay_secs: Option<u32> }- Service restarts only on successful exit (exit code 0)OnSuccessviaRestart=on-success)KeepAlive=true; OnSuccess usesKeepAlivedictionary withSuccessfulExit=falseServiceInstallCtx:disable_restart_on_failure: false→restart_policy: RestartPolicy::OnFailure { delay_secs: None }disable_restart_on_failure: true→restart_policy: RestartPolicy::NeverBREAKING CHANGE: Platform-specific restart configuration fields are now
Optiontypes,allowing the generic
RestartPolicyto be used by default while still supporting platform-specificfeatures when needed:
SystemdInstallConfig.restart: Changed fromSystemdServiceRestartTypetoOption<SystemdServiceRestartType>Some, the systemd-specific restart type takes precedence over the genericRestartPolicyNone(default), falls back to the genericRestartPolicyrestart: SystemdServiceRestartType::OnFailure→restart: Some(SystemdServiceRestartType::OnFailure)orrestart: Noneto use generic policyLaunchdInstallConfig.keep_alive: Changed frombooltoOption<bool>Some, the launchd-specific keep-alive setting takes precedenceNone(default), falls back to the genericRestartPolicykeep_alive: true→keep_alive: Some(true)orkeep_alive: Noneto use generic policyWinSwInstallConfig.failure_action: Changed fromWinSwOnFailureActiontoOption<WinSwOnFailureAction>Some, the WinSW-specific failure action takes precedenceNone(default), falls back to the genericRestartPolicyfailure_action: WinSwOnFailureAction::Restart(...)→failure_action: Some(WinSwOnFailureAction::Restart(...))orfailure_action: Noneto use generic policyAdded
logcrate to emit warnings when platform-specific restart features are not supportedConfiguration
📅 Schedule: (UTC)
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate.