私は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はまだタスクマネージャで実行されている今、何が起こる
はコマンドです。結果
として
このコマンド:私は最新のバージョンに更新しようとしたTopshelf
ERROR Topshelf.Hosts.InstallHost - The MyService service is already installed.
:
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.
なぜこれが起こっているのかわかりません。 エラーロギングを追加しようとしましたが、何も起きませんでした。
誰でもこれを前に持っていましたか?どのようにこの "スティッキー"サービスをアンインストール後も実行を停止させるためのアイデアはありますか?
おかげ