ServiceWatcherでBJD無応答時にBJDを再起動する

www.vector.co.jp

BJD再起動スクリプト(C:\ServiceWatcher\restart.bat)

taskkill /IM bjd.exe /F
timeout /T 3
net start "blackjumbodog"
echo %date% %time% >> restart.txt

▼監視定義(bjd.iniの抜粋)

[Service]
Host=
Name=BlackJumboDog
Root=C:\ServiceWatcher
Notice=0
Log=1
OnStart=
OnStop=C:\ServiceWatcher\restart.bat

[Ping]
Port=80
Request=HEAD / HTTP/1.0\n\n
Timeout=120
Notice=0
OnStart=
OnStop=C:\ServiceWatcher\restart.bat
/* -----codeの行番号----- */