daemon and monit scripts