I would like to create a semaphore file in the filesystem (/tmp/restart maybe?) and then poll that file from a cron job to see if a certain daemon should be restarted. But, how on earth do one create such an object?