adding config file safety check, move default PID, check log existence, change polling to once an hour, use command substitution instead of temp file