Simplified code to disable daemons