cron script to check if service is running, needs improvement