check if deamon is running in cron script