* サービスプログラム制御 [#c0d465d4]

** サービスの状態確認 [#gbc8127a]
 sc.exe query foo-service

** サービス一覧 [#u3e281c3]
 sc query state= all | findstr SERVICE_NAME

** サービスの開始 [#u923d23d]
 sc start foo-service

** スタートアップの種類を変更 [#gdc80364]
 sc config foo-service start= auto
 sc config foo-service start= disabled

** サービスの削除 [#y4535bec]
 sc.exe delete foo-service

** サービスの登録 [#c4d211c6]
- nssmやrunasserviceを使う。
- http://stackoverflow.com/questions/415409/run-batch-file-as-a-windows-service/13294293#13294293
- http://serverfault.com/questions/54676/how-to-create-a-service-running-a-bat-file-on-windows-2008-server

** 参考 [#k4ab635c]
http://www.itmedia.co.jp/enterprise/articles/0809/17/news065.html

トップ   編集 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS