New profiles daemons

Modified slightly to take into account boot times. Older version
sometimes failed as the system wasnt fully booted and the profiles
command wouldnt work.