Basic unix daemon functionality