fix: update service status when service is ready

This commit is contained in:
oomeow 2025-12-06 20:22:07 +08:00
parent af0a3be66d
commit c1489647d1
No known key found for this signature in database
GPG Key ID: B7BC3926B326F37B

View File

@ -532,6 +532,7 @@ impl ServiceManager {
match status {
ServiceStatus::Ready => {
logging!(info, Type::Service, "服务就绪,直接启动");
self.0 = ServiceStatus::Ready;
}
ServiceStatus::NeedsReinstall | ServiceStatus::ReinstallRequired => {
logging!(info, Type::Service, "服务需要重装,执行重装流程");