2017-03-06 1 views
0

topshelf 서비스가 포함 된 프로젝트가 있고 배포 스크립트가 서버에 최신 버전을 제거했다가 다시 설치합니다.종료를 거부하는 고정 톱 셀프 서비스

지난 주까지 오랜 시간 동안 정상적으로 작동하지 않았습니다. 이유는 알 수없는 이유로 오작동하기 시작했습니다.

D:/Deploy/current/net40/MyService.exe uninstall 

인쇄합니다 결과 :

The uninstall is beginning. 
2017-03-06T11:21:07 [1] INFO Topshelf.Runtime.Windows.HostInstaller - Uninstalling MyService service 
Removing EventLog source MyService. 
Service MyService is being removed from the system... 
Service MyService was successfully removed from the system. 
Attempt to stop service Halcyon. 
The uninstall has completed. 

그러나 MyService.exe이면 여전히 윈도우 작업 관리자에서 실행되고 지금은 어떻게됩니까

는 명령입니다. 그 결과

으로

이 명령을

ERROR Topshelf.Hosts.InstallHost - The MyService service is already installed. 

나는 최신 버전으로 Topshelf 업데이트 시도 :

D:/Deploy/current/net40/MyService.exe install --manual 

이 (예상) 오류를 제공합니다. 다른 이상한 오류로 인해 배포 서버에서 서비스를 수동으로 제거하고 종료하지 않습니다.

Beginning the Install phase of the installation. 
2017-03-06T11:40:08 [1] INFO Topshelf.Runtime.Windows.HostInstaller - Installing MyService service 
Installing service MyService... 
Service MyService has been successfully installed. 

The Install phase completed successfully, and the Commit phase is beginning. 

The Commit phase completed successfully. 

The transacted install has completed. 
INFO MyService.Program - Exiting Main() - exitCode:Ok 
INFO Dozo::Applications::Topshelf - Starting MyService 
INFO Dozo::Applications::Topshelf - Changing MyService to start automatically 
INFO Dozo::Dozo - sc config "MyService" start= auto 
[SC] ChangeServiceConfig SUCCESS 
INFO Dozo::Applications::Topshelf - Starting MyService 
INFO Dozo::Dozo - net start "MyService" 
The MyService service is starting........ 
The MyService service could not be started. 

왜 이런 일이 발생하는지 알 수 없습니다. 더 많은 오류 로깅을 추가했지만 아무 것도 나타나지 않았습니다.

누구나 전에 사용 했습니까? 어떤 아이디어라도이 "끈적"서비스를 제거한 후에도 실행을 멈추게하려면 어떻게해야합니까?

고마워요.

답변

1

안녕하세요, Windows 명령으로 서비스를 삭제하려고 했습니까?

을 열고 명령 프롬프트를 입력

sc delete <service-name> 
관련 문제