add small utility scripts to check, log and restart process if needed