LoginSignup
0
2

More than 5 years have passed since last update.

自動起動しないサービス

Posted at

C#で作成したでサービスが起動していない。
手動で起動しみると正常に起動する。設定も自動起動となっている。

調べてみると依存するサービスがあると動作しないことがわかった。
サービス内でPostgreSQLのテーブルへの登録をおこなうことから、
PostgreSQLより先に動作してサービスが起動していない模様。
起動しないのはどうかと思うが一旦無視して、解決策がないか探ってみた。
サービス登録時のオプションでdependにPostgreSQLのサービスを指定すれば良さそうな雰囲気。
早速サービスの登録しなおし。

sc create サービス名 binpath=PGのパス depend=Postgresサービス名 start=auto

無事解決。

0
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
2