starts and stops the daemons